package com.aaa.pro.service;

import com.aaa.pro.dao.JHTakeOutDao;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

/**
 * fileName:JHTakeOutServiceImpl
 * description:
 * author:JH
 * createTime:2020/3/7 15:41
 * version:1.0.0
 */
@Service
public class JHTakeOutServiceImpl implements JHTakeOutService {
    @Autowired
    private JHTakeOutDao dao;
    /**
     * 查询所有外卖商品
     * @return
     */
    @Override
    public List<Map> getList() {
        return dao.getList();
    }
    /**
     * 查询分类
     * @return
     */
    @Override
    public List<Map> getPro() {
        return dao.getPro();
    }
    /**
     * 模糊查询
     * @param name
     * @return
     */
    @Override
    public List<Map> getChange(String name) {
        return dao.getChange(name);
    }
}
